package com.elinshaw.pattern.bus;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * 异步eventBus
 *
 * @author Administrator
 */
public class AsyncEventBus extends EventBus {

    public AsyncEventBus() {
    }

    public AsyncEventBus(String busName, ThreadPoolExecutor threadPoolExecutor) {
        this(busName, null, threadPoolExecutor);
    }

    public AsyncEventBus(ThreadPoolExecutor threadPoolExecutor) {
        this("default-async", null, threadPoolExecutor);
    }

    public AsyncEventBus(EventExceptionHandle eventExceptionHandle, ThreadPoolExecutor threadPoolExecutor) {
        this("default-async", eventExceptionHandle, threadPoolExecutor);
    }

    public AsyncEventBus(String busName, EventExceptionHandle eventExceptionHandle,
                         ThreadPoolExecutor threadPoolExecutor) {
        super(busName, eventExceptionHandle, threadPoolExecutor);
    }
}
